package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class TEacherTest {
    public static void main(String[] args) {
        //抽象类不能new
        //Teacher t=new Teacher("小郭",28);
        Teacher t=new CTeacher("小张",23);
        t.selfIntroduce();
        System.out.println("看看老师怎么上课的：");
        t.giveLession();
    }
}
